package com.riant.day04.demo1;

/**
 * @Classname MyRunnable
 * @Description TODO
 * @Date 2021/3/10 15:05
 * @Created by 张斌
 */
public class MyRunnable implements Runnable {
    @Override
    public void run() {
        for(int i=0;i<=10;i++){
            System.out.println("当前runnable线程名："+Thread.currentThread().getName() +",i="+i);
        }
        System.out.println(Thread.currentThread().getName()+"结束");
    }
}
